package cn.sourcespro.shiro.service.impl;

import cn.sourcespro.shiro.dao.PermissionMapper;
import cn.sourcespro.shiro.service.PermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * security
 *
 * @author zhanghaowei
 * @date 2018/7/13
 */
@Service
public class PermServiceImpl implements PermService {

    @Autowired
    private PermissionMapper mapper;

    @Override
    public Set<String> findByUserId(Long userId) {
        return mapper.findByUserId(userId);
    }
}
